x86/fpu: extract extended related code into xstate.h and xstate.c
authorWei Huang <wei.huang2@amd.com>
Mon, 9 May 2011 10:37:03 +0000 (11:37 +0100)
committerWei Huang <wei.huang2@amd.com>
Mon, 9 May 2011 10:37:03 +0000 (11:37 +0100)
commite39609c4502b7abab4133f77587084047a6c3e79
tree6d720a443a479fd902afad778222c94876afca96
parentf94fcdbf7f4946952f9c22af307b10b088724a15
x86/fpu: extract extended related code into xstate.h and xstate.c

Current extended code is mixing with FPU code in i387.c. As part of
FPU code cleanup, this patch moves all extended state code into
independent files. Not much semantic are changed and most function
names are kept untouched, except for xsave() and xsaveopt(). These two
functions are combined into a single function.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
xen/arch/x86/Makefile
xen/arch/x86/cpu/common.c
xen/arch/x86/domain.c
xen/arch/x86/domctl.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/vmx/vmcs.c
xen/arch/x86/i387.c
xen/arch/x86/traps.c
xen/arch/x86/xstate.c [new file with mode: 0644]
xen/include/asm-x86/i387.h
xen/include/asm-x86/xstate.h [new file with mode: 0644]